package com.shop.zzh.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletResponse;

/**
 * @program: shop
 * @description: 设置默认访问页面
 * @author: zhuzh
 * @create: 2019-11-19 11:55
 **/
@RestController
public class ZcController {

	@RequestMapping("/")
	public ModelAndView index() {
		return new ModelAndView("login/indexLogin");
	}

	/**
	 * 前台主页
	 * @return
	 * @throws Exception
	 */
	@GetMapping("/toIndex.do")
	public ModelAndView toIndex()throws Exception{
		return new ModelAndView("index/index");
	}

	@GetMapping("/header.html")
	public ModelAndView headerIndex() throws Exception {
		return new ModelAndView("index/common/header");
	}
}
